

#include "gp_realdata_collect_host.h"
#include "gp_app_framework.h"
#include "gp_component_manager.h"

#include <myFn13/myThreadPool.h>

using namespace gp;
using namespace po;
using namespace collect;

const char *RealDataCollectHost::g_szHostVersion = "0.1";
const char *RealDataCollectHost::g_szPoHostDescStr = "collect_real";

RealDataCollectHost::RealDataCollectHost(const char *url)
{
	IGppoStartStop::_RegisterToIBase(this);

	m_url = url;
	Log().write("%s() succ! this=%08x,url=%s",__FUNCTION__,this,url);
	auto ptr = GetPo("collect_real");

	auto tdl = global::thdpool();
	auto taskptr = tdl->NewTaskPtr();

}

RealDataCollectHost::~RealDataCollectHost()
{

	Log().write("%s succ! this=%08x", __FUNCTION__, this);
}

TResult RealDataCollectHost::GppoStart()
{
	auto db = GetMySqlPtr();
	auto ptr = GetPo(m_url);
	return eSuccess;
}

TResult RealDataCollectHost::GppoStop()
{
	return eSuccess;
}


